<?php /*a:1:{s:81:"/Users/juyaobin/Desktop/Site/app/serverLocalhost/view/DataOptimization/index.html";i:1596879604;}*/ ?>
<!--
 * @Date: 2020-06-11 11:59:26
 * @名称: 
 * @版本: 0.01
 * @作者: 初雪桜
 * @邮箱: 202184199@qq.com
 * @最后编辑人: 初雪桜
 * @LastEditTime: 2020-08-08 17:40:04
 * @FilePath: /服务器/app/serverLocalhost/view/DataOptimization/index.html
-->
<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8" />
    <meta name="renderer" content="webkit" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <title>网站后台管理模版</title>
    <link rel="stylesheet" type="text/css" href="/public/static/admin/layui/css/layui.css" />
    <link rel="stylesheet" type="text/css" href="/public/static/admin/css/admin.css" />
    <meta name="referrer" content="no-referrer" />
    <!-- 头部403 -->
    <!-- 图片上传 -->
    <script src="/public/static/admin/imgupdate/jquery.min.js"></script>
    <script src="/public/static/admin/imgupdate/jQuery.upload.min.js"></script>
    <link rel="stylesheet" href="/public/static/admin/imgupdate/upload.css" />
    <script src="/public/static/tisp.js"></script>
    <!-- 图片上传 -->
    <style>
        body .layer-test {
            background: none;
            box-shadow: none;
        }

        /* 定制化 */
        html .layui-layer-demo {
            background-color: #eee;
        }

        .layui-layer-demo .layui-layer-title {
            border: none;
            background-color: #333;
            color: #fff;
        }
    </style>
</head>

<body>
    <div class="page-content-wrap">
        <div class="layui-tab" style="margin: 0;">
            <div class="layui-tab-content">
                <div class="layui-tab-item"></div>
                <div class="layui-tab-item layui-show">
                    <div class="layui-tab-item layui-show">

                        <form class="layui-form" onsubmit="return false;" style="width: 90%;padding-top: 20px;">
                            <div class="layui-input-block"
                                style="border:3px solid rgb(0, 255, 76);color: rgb(0, 255, 76);">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">文件优化：</label>
                                    <div class="layui-input-block">

                                        <div class="layui-inline">
                                            <select id="category" lay-filter="status">
                                                <option value="all">全部数据库</option>
                                                <?php if(is_array($imageTableList) || $imageTableList instanceof \think\Collection || $imageTableList instanceof \think\Paginator): $i = 0; $__LIST__ = $imageTableList;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?>
                                                <option selected value="<?php echo htmlentities($vo['table_name']); ?>"><?php echo htmlentities($vo['table_name_as']); ?></option>
                                                <?php endforeach; endif; else: echo "" ;endif; ?>

                                            </select>
                                        </div>
                                        <button class="layui-btn layui-btn-normal file-management-controller"
                                            lay-submit="" lay-filter="formDemo">开始执行</button>
                                        <a style="color:red">请注意 此选项会寻找 某个表中重复或丢失的文件 </a>
                                        <div>
                                            优化模式：
                                            <input type="radio" name="categorytype" value="1" title="显示全部">
                                            <div class="layui-unselect layui-form-radio layui-form-radioed"><i
                                                    class="layui-anim layui-icon layui-anim-scaleSpring"></i>
                                            </div>
                                            <input type="radio" name="categorytype" value="0" title="显示丢失或多余" checked>
                                            <div class="layui-unselect layui-form-radio"><i
                                                    class="layui-anim layui-icon"></i>
                                            </div>
                                            <input type="radio" name="categorytype" value="3" title="只显示多余">
                                            <div class="layui-unselect layui-form-radio"><i
                                                    class="layui-anim layui-icon"></i>
                                            </div>
                                            <input type="radio" name="categorytype" value="2" title="只显示丢失">
                                            <div class="layui-unselect layui-form-radio layui-form-radioed"><i
                                                    class="layui-anim layui-icon layui-anim-scaleSpring"></i>

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                        <form class="layui-form" onsubmit="return false;" style="width: 90%;padding-top: 20px;">
                            <div class="layui-input-block"
                                style="border:3px solid rgb(0, 255, 76);color: rgb(0, 255, 76);">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">分类优化：</label>
                                    <div class="layui-input-block">
                                        <button class="layui-btn layui-btn-normal delete-categorie" lay-submit=""
                                            lay-filter="formDemo">开始执行</button>
                                        <a style="color:red">请注意 此选项用于剥离已被删除的分类的 如果分类被删除 但是分类中还有漫画数据 请在这里点击开始执行
                                            它会自动寻找所有漫画 并且移除掉 已被删除的分类 </a>
                                        <div>
                                            优化模式：
                                            <input type="radio" name="categorytype" value="0" title="删除全部已删除分类" checked>
                                            <div class="layui-unselect layui-form-radio"><i
                                                    class="layui-anim layui-icon"></i>
                                            </div>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <script src="/public/static/admin/layui/layui.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
        layui.use(['form', 'element'], function () { });
        $(document).on("click", "button.file-management-controller", function () {
            $tableName = $("#category").val();
            var categoryType = $("input[name='categorytype']:checked").val();
            window.parent.InsertNewTab(
                "编辑文章 - " + $tableName,
                '/serverLocalhost/DataOptimization/FileManagementController?allShow=' + categoryType + '&tableName=' + $tableName,
                "edit-comics-", $tableName, {
            })

        });
        $(document).on("click", "button.delete-categorie", function () {
            window.parent.InsertNewTab(
                "优化分类 - 清空已被删除的分类",
                '/serverLocalhost/DataOptimization/DeletedCategorie',
                "delete-categorie", "", {
            })
        });
    </script>
</body>

</html>